import { instance } from "../utils/request";
const getVarifysPagination = async (page:number,limit:number,key?:string) => {
	return await instance.get("/Varifys/Pagination", {page,limit,key});
};

const addVarifys = async (data:RequestCreateVarifysDto) => {
	return await instance.post("/Varifys/Add", data);
};

const updateVarifys = async (data:RequestUpdateVarifysDto) => {
	return await instance.post("/Varifys/Update", data);
};

const getVarifysDetail = async (id:number) => {
	return await instance.get("/Varifys/Detail", { id  });
};

const deleteVarifys = async (data:RequestIdVarifysDto) => {
	return await instance.post("/Varifys/Delete", data);
};

const VarifysApi = {
	getVarifysPagination,
	addVarifys,
	updateVarifys,
	getVarifysDetail,
	deleteVarifys,
};

export default VarifysApi
